<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>绩效统计 > 按用户统计</div>
	<form method="post" action="byadmin">
		<div class="rightbody f">
			<div class="rightbodycontent">
			    <table class="tools">
			        <tr>
			        	<td>
		                	所在部门：
		                    <select name="departmentid" onchange="getform(this).submit()">
		                        <option value="0">--全部--</option>
		                        <#list departments as department>
		                        	<option value="${department.id}"<#if department.id == departmentid> selected</#if>>${department.name}</option>
		                        </#list>
						    </select>&nbsp;
		                	担任角色：
		                	<select name="adminroleid" onchange="getform(this).submit()">
		                        <option value="0">--全部--</option>
		                        <#list adminroles as adminrole>
		                        	<option value="${adminrole.id}"<#if adminrole.id == adminroleid> selected</#if>>${adminrole.name}</option>
		                        </#list>
						    </select>&nbsp;
		                	全局权限：
		                	<select name="adminglobalpermissionid" onchange="getform(this).submit()">
		                        <option value="0">--全部--</option>
		                        <#list adminglobalpermissions as adminglobalpermission>
		                        	<option value="${adminglobalpermission.id}"<#if adminglobalpermission.id == adminglobalpermissionid> selected</#if>>${adminglobalpermission.name}</option>
		                        </#list>
						    </select>&nbsp;
							关键词：<input type="text" name="search" value="${search!}" />&nbsp;<a onclick="getform(this).submit()" class="linkbtn search">搜索</a>
		                </td>
			        </tr>
			    </table>
			    <table cellspacing="1" cellpadding="4" class="tablelist">
			        <tr>
					    <th>头像</th>
					    <th>账号</th>
					    <th>姓名</th>
					    <th>所在部门</th>
					    <th>担任角色</th>
					    <th>全局权限</th>
					    <th>草稿数</th>
					    <th>驳回数</th>
					    <th>待审数</th>
					    <th>发布数</th>
					    <th>移除数</th>
					    <th>文档总数</th>
			        </tr>
			        <#list admins as admin>
			        	<#assign roles = "">
			        	<#list admin.adminReAdminRoles as arar>
			        		<#assign roles= roles + "&#10;" + arar.adminRole.name>
			        	</#list>
			        	<#if roles != ""><#assign roles = roles?substring(5)></#if>
			        	<#assign articlecounts = articlecountMaps[admin.id?c]>
						<tr<#if admin_index % 2 == 1> class="splittr"</#if>>
							<td align="center"><img src="${admin.face}" width="20" height="20" /></td>
						    <td align="center">${admin.account}</td>
						    <td align="center">${admin.name}</td>
						    <td align="center">${admin.department.name}</td>
						    <td align="center"<#if adminroles?size gt 0> title="${roles}"</#if>>${admin.adminReAdminRoles?size}</td>
						    <td align="center">${admin.adminGlobalpermission.name}</td>
						    <td align="center">${articlecounts[0]}</td>
						    <td align="center">${articlecounts[1]}</td>
						    <td align="center">${articlecounts[2]}</td>
						    <td align="center">${articlecounts[3]}</td>
						    <td align="center">${articlecounts[4]}</td>
						    <td align="center">${articlecounts[5]}</td>
			            </tr>
			        </#list>
			    </table>
		        <br />
				<#include "../../include/pager.html">
			</div>
	    </div>
    </form>
</body>
</html>